package org.thanatos.xcw.service.imp;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.thrift.TException;
import org.restlet.security.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.thanatos.xcw.rpc.IUser;
import org.thanatos.xcw.rpc.IUserService;
import org.thantos.xcw.dao.DaoSupport;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2015/11/23.
 */
@Service
public class IUserServiceImp implements IUserService.Iface{

    @Autowired DaoSupport daoSupport;

    @Override
    public boolean signin(String username, String nick, String password) throws TException {
        return true;
    }

    @Override
    public String login(String username, String password) throws TException {
        return null;
    }

    @Override
    public String getUserByNick(String username) throws TException {
        return null;
    }

    @Override
    public boolean updateInfo(String userstr) throws TException {
        User user = JSON.parseObject(userstr, User.class);
        return false;
    }

    @Override
    public boolean update4portrait(String portrait) throws TException {
        return false;
    }

    @Override
    public List<String> friends(long uid, int pageNum) throws TException {
        return null;
    }

}
